import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRewardHelper } from "../Public/SeqRewardHelper";
type int = number;
//class SCompleteKillEvilTask
    
    export  class SCompleteKillEvilTask extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCompleteKillEvilTask();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.type);
            arg1.writeInt(this.killEvilTaskType);
            SeqRewardHelper.write(arg1, this.rewards);
            arg1.writeInt(this.canGetNum);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.type = arg1.readInt();
            this.killEvilTaskType = arg1.readInt();
            this.rewards = SeqRewardHelper.read(arg1);
            this.canGetNum = arg1.readInt();
            return;
        }

        public /* const */_type: int=12104;

        public /* var */type: int;

        public /* var */killEvilTaskType: int;

        public /* var */rewards: Array<any>;

        public /* var */canGetNum: int;

        public static /* var */_regist: SCompleteKillEvilTask;
    }

            SCompleteKillEvilTask._regist = new SCompleteKillEvilTask(true);
        